home *** CD-ROM | disk | FTP | other *** search
/ Champak 128 / Vol 128 (Damaged).iso / games / hello_ki.swf / scripts / DefineSprite_83 / frame_4 / DoAction.as
Encoding:
Text File  |  2011-03-26  |  564 b   |  28 lines

  1. PlayingGame = false;
  2. CurrentFlipsCount = 0;
  3. CurrentFlips = "Flips: 0";
  4. CurrentPairsCount = 0;
  5. CurrentPairs = "Pairs Matched: 0";
  6. n = 1;
  7. while(n < 25)
  8. {
  9.    if(n < 10)
  10.    {
  11.       CardTarget = "Card0" + n + ".CardMotion";
  12.    }
  13.    else
  14.    {
  15.       CardTarget = "Card" + n + ".CardMotion";
  16.    }
  17.    tellTarget(CardTarget)
  18.    {
  19.       gotoAndStop("CardInvisible");
  20.    }
  21.    n++;
  22. }
  23. Timer.gotoAndStop("TimerOff");
  24. PauseButton.PauseText.ButtonText.gotoAndStop(1);
  25. PauseButton.PauseText.gotoAndStop(1);
  26. UserMessages.gotoAndPlay(GameOverPage);
  27. stop();
  28.